import request from '@/utils/request'

// 查询研学地点图片列表
export function listStudylocationimage(query) {
  return request({
    url: '/studytourism/studylocationimage/list',
    method: 'get',
    params: query
  })
}

// 查询研学地点图片详细
export function getStudylocationimage(locationImgId) {
  return request({
    url: '/studytourism/studylocationimage/' + locationImgId,
    method: 'get'
  })
}

// 新增研学地点图片
export function addStudylocationimage(data) {
  return request({
    url: '/studytourism/studylocationimage',
    method: 'post',
    data: data
  })
}

// 修改研学地点图片
export function updateStudylocationimage(data) {
  return request({
    url: '/studytourism/studylocationimage',
    method: 'put',
    data: data
  })
}

// 删除研学地点图片
export function delStudylocationimage(locationImgId) {
  return request({
    url: '/studytourism/studylocationimage/' + locationImgId,
    method: 'delete'
  })
}
